<?php
/**
 * 开始页
 * 默认控制器
 */

class Main extends Controller 
{
	public function index()
	{
		echo 'Hello FitPHP!';
	}
    
    public function page()
    {
        $data['offset'] = 5;
        $data['total_rows'] = 400;
        $this->loader->library('pagination');
        $this->pagination->initialize($data);
        echo $this->pagination->create_links();
    }
	
	public function test()
	{
		include('database.php');
		var_dump($database);
	}
}